import axios from '../model/axios'


export const developerQuery = (params: any) => {
    return axios({
      method: 'get',
      url: '/api/developers/query',
<<<<<<< HEAD
      headers:{
           token:window.localStorage.getItem("token")
      },
      params
    })
  }

  export const developerQueryMe = (params: any) => {
    return axios({
      method: 'get',
      url: '/api/developers/developerQuery
      headers:{
           token:window.localStorage.getItem("token")
      },
      params
    })
}

  export const developerAdd = (data: any) => {
    return axios({
      method: 'post',
      url: '/api/developers/add',
      headers:{
        token:window.localStorage.getItem("token")
   },
      data
    })
  }
  export const developerGroup = (params: any) => {
    return axios({
        method: "get",
        url: "/api/developers/group",
        headers: {
            token: window.localStorage.getItem("token")
        },
        params
    })
}

export const developersUpdate = (data:any)=>{    
  return axios({
      method:'patch',
      url:"/api/developers/update",
      data
  })
}

  export const userDel = (data: any) => {
    return axios({
      method: 'delete',
      url: '/api/users/del',
      data
    })
  }
